/**
  ******************************************************************************
  * @文件     oled.h
  * @作者     hero_cao
  * @版本     V1.0.0
  * @日期     2025/07/08
  * @概要     oled驱动库
  ******************************************************************************
  */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __OLED_H_
#define __OLED_H_

/* Includes ------------------------------------------------------------------*/
#include <stdint.h>

 
/* Exported types ------------------------------------------------------------*/
/* Exported constants --------------------------------------------------------*/
#define OLED_WITH	128		//默认128

/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */
void oled_init(void);
void oled_refresh_gram(void);
void oled_draw_point(uint8_t x, uint8_t y, uint8_t dot);    /* OLED画点 */
void oled_fill(uint8_t x1, uint8_t y1, uint8_t x2, uint8_t y2, uint8_t dot);        /* OLED区域填充 */
void oled_show_char(uint8_t x, uint8_t y, uint8_t chr, uint8_t size, uint8_t mode); /* OLED显示字符 */
void oled_show_num(uint8_t x, uint8_t y, uint32_t num, uint8_t len, uint8_t size);  /* OLED显示数字 */
void oled_show_string(uint8_t x, uint8_t y, const char *p, uint8_t size);           /* OLED显示字符串 */

#endif  /* __OLED_H_ */
